//state用于存储状态,变量
const state = {
    type:-1,//0是user,1是hr,2是管理员
    user:window.sessionStorage.getItem('user')?window.sessionStorage.getItem('user'):{},
    hr: window.sessionStorage.getItem('hr')?window.sessionStorage.getItem('hr'):{},
    admin:window.sessionStorage.getItem('admin')?window.sessionStorage.getItem('admin'):{},
    authorization: localStorage.getItem('authorization')?localStorage.getItem('authorization'):''
}

export  default state